package cn.edu.scau.cmi.yangzemin.simpleFactoryMethod;

import cn.edu.scau.cmi.yangzemin.simpleFactoryMethod.Pork;
import cn.edu.scau.cmi.yangzemin.simpleFactoryMethod.Beef;
import cn.edu.scau.cmi.yangzemin.simpleFactoryMethod.Chicken;

public class MeatFactory {
	
	public static Meat getMeat(String typeOfMeat) {
		Meat meat =null;
		switch(typeOfMeat) {
		case "Pork":
			meat = new Pork();
			break;
		case "Beef":
			meat = new Beef();
			break;
		case "Chicken":
			meat = new Chicken();
			break;
		}
		return meat;
	}
}